home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / CIIGSIncludes / IOCtl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-01  |  1.4 KB  |  50 lines  |  [TEXT/MPS ]

  1. /*
  2.    ioctl.h -- Device-handler-specific requests
  3.  
  4.    Copyright, Apple Computer Inc. (1985)
  5.    All rights reserved.
  6. */
  7.  
  8. # ifndef __IOCTL__
  9. # define __IOCTL__
  10. /*
  11.  *   IO Control commands.
  12.  *
  13.  *   IOCTLs which begin with "FIO" are controls which are general
  14.  *        control requests.  They may be executed by the top-level
  15.  *        ioctl() procedure, or previewed by it before passing it on
  16.  *        to the driver xxIoctl()s.
  17.  *
  18.  * FIOLSEEK and FIODUPFD are for internal use only.
  19.  */
  20. # define FIOLSEEK       (('f'<<8)|00)   /* 3rd arg is a _SeekType (below) */
  21. # define FIODUPFD       (('f'<<8)|01)   /* 3rd arg is min new fd number */
  22.  
  23. # define FIOINTERACTIVE (('f'<<8)|02)   /* If device is interactive */
  24. # define FIOBUFSIZE     (('f'<<8)|03)   /* Return optimal buffer size */
  25. # define FIOFNAME       (('f'<<8)|04)   /* Return filename */
  26. # define FIOREFNUM      (('f'<<8)|05)   /* Return fs refnum */
  27. # define FIOSETEOF      (('f'<<8)|06)   /* Set file length */
  28. # define FIOGETEOF      (('f'<<8)|07)   /* Get file length */
  29. # define FIOSETMARK     (('f'<<8)|08)   /* Set current position */
  30. # define FIOGETMARK     (('f'<<8)|09)   /* Get current position */ 
  31. /*
  32.  * Implementation of lseek() uses this as its 3rd argument.
  33.  */
  34. typedef struct {
  35.      int  posMode;
  36.      long posOff;
  37. } _SeekType;
  38.  
  39.  
  40. /*
  41.  * TTY stuff.
  42.  */
  43.  
  44. # define TIOFLUSH   (('t'<<8)|00)
  45. # define TIOSPORT   (('t'<<8)|01)
  46. # define TIOGPORT   (('t'<<8)|02)
  47.  
  48.  
  49. # endif __IOCTL__
  50.